package com.xjtu.learn.plan.domain;

import lombok.Data;

@Data
public class Result {

    public static final String SUCCESS_CODE = "000000";

    private String code;
    private String msg;
    private Object data;

    public static Result success() {
        Result result = new Result();
        result.code = SUCCESS_CODE;
        return result;
    }

    public boolean isSuccess() {
        return SUCCESS_CODE.equals(code);
    }
}
